package com.hust.edu.cn.mapper;

import com.hust.edu.cn.entity.Friend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yu Jian
 * @since 2021-07-06
 */
@Mapper
@Repository
public interface FriendMapper extends BaseMapper<Friend> {

    List<Friend> listFriendLink();

    int saveFriendLink(Friend friendLink);

    Friend getFriendLink(Long id);

    Friend getFriendLinkByBlogaddress(String blogaddress);

    int updateFriendLink(Friend friendLink);

    void deleteFriendLink(Long id);
}
